package com.woniu.supermarket.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniu.supermarket.entity.Member;
import com.woniu.supermarket.entity.Sales;
import com.woniu.supermarket.entity.Shop;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel(description = "封装销售退货单信息")
@Data
@ToString
public class SalesReturnVo {

    @ApiModelProperty(value = "销售退货订单id")
    private Integer id;

    @ApiModelProperty(value = "销售退货订单号")
    private String salesReturnNumber;

    @ApiModelProperty(value = "生成退货单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date returnDateTime;

    @ApiModelProperty(value = "订单对象")
    private Sales sales;

    @ApiModelProperty(value = "会员对象")
    private Member member;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal salesReturnTotalPrice;

    @ApiModelProperty(value = "退款数量")
    private Integer salesReturnQuantity;

    @ApiModelProperty(value = "退款类型")
    private Integer payType;

    @ApiModelProperty(value = "门店对象")
    private Shop shop;

    @ApiModelProperty(value = "操作人员")
    private String operator;

    @ApiModelProperty(value = "状态")
    private Integer status;

}
